<script setup lang="ts">
import { Notification, DocumentRemove,Platform } from '@element-plus/icons-vue';
const props = defineProps(['isCollapse'])

</script>

<template>
    <h3 v-if="!props.isCollapse">
        華通床位異常系統
    </h3>
    <div v-if="props.isCollapse" style="width: 60px; height: 60px; line-height: 75px;text-align: center;color: #43d28a; padding-left: 5px;">
        <el-icon :size="25" >
           <Platform></Platform>
        </el-icon>
    </div>
    <el-menu class="el-menu-vertical-demo" background-color="#545c64" text-color="#fff" active-text-color="#ffd04b"
        padding="0px" :collapse="props.isCollapse" :collapse-transition="props.isCollapse" style="border: 0;" router>
        <el-sub-menu index="1">
            <template #title>
                <el-icon :size="20">
                    <Notification />
                </el-icon>
                <span>異常狀態查詢</span>
            </template>
            <el-menu-item-group>
                <el-menu-item index="/abnormal/apply">申請住宿異常</el-menu-item>
                <el-menu-item index="/abnormal/quit">申請退宿異常</el-menu-item>
            </el-menu-item-group>
        </el-sub-menu>
        <el-sub-menu index="2">
            <template #title>
                <el-icon :size="20">
                    <DocumentRemove />
                </el-icon>
                <span >宿舍異動系統</span>
            </template>
            <el-menu-item-group>
                <el-menu-item index="/bedmove/movequery">員工異動查詢</el-menu-item>
            </el-menu-item-group>
        </el-sub-menu>
    </el-menu>
</template>

<style>
h3 {
  font-size: 15px;
  font-weight: bold;
  line-height: 60px;
  text-align: center;
  color:#fff
}
.el-menu-vertical-demo:not(.el-menu--collapse) {
  width: 200px;
  min-height: 400px;
}
</style>